package com.jxbeidou.system.log.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import com.jxbeidou.core.mybatis.entity.BaseEntity;

/**
 * 操作日志表
 *
 * @author 杜晓祥 
 * @since 1.0.0 2023-12-14
 */
@EqualsAndHashCode(callSuper=false)
@Data
@TableName("sys_log_operate")
public class LogOperateDO {

	@TableId(type = IdType.ASSIGN_ID)
	private Long id;
	/**
	* 模块名
	*/
	@TableField(value = "module")
	private String module;

	/**
	* 操作名
	*/
	@TableField(value = "name")
	private String name;

	/**
	* 请求URI
	*/
	@TableField(value = "req_uri")
	private String reqUri;

	/**
	* 请求方法
	*/
	@TableField(value = "req_method")
	private String reqMethod;

	/**
	* 请求参数
	*/
	@TableField(value = "req_params")
	private String reqParams;

	/**
	* 操作IP
	*/
	@TableField(value = "ip")
	private String ip;

	/**
	* 登录地点
	*/
	@TableField(value = "address")
	private String address;

	/**
	* User Agent
	*/
	@TableField(value = "user_agent")
	private String userAgent;

	/**
	* 操作类型
	*/
	@TableField(value = "operate_type")
	private Integer operateType;

	/**
	* 执行时长
	*/
	@TableField(value = "duration")
	private Integer duration;

	/**
	* 操作状态  0：失败   1：成功
	*/
	@TableField(value = "status")
	private Integer status;

	/**
	* 用户ID
	*/
	@TableField(value = "user_id")
	private Long userId;

	/**
	* 操作人
	*/
	@TableField(value = "real_name")
	private String realName;

	/**
	* 返回消息
	*/
	@TableField(value = "result_msg")
	private String resultMsg;

	@TableField(value = "create_time")
	private LocalDateTime createTime;

}